export default defineEventHandler(event => {
  
  const headers = event.node.req.headers;

  // 删除私有环境变量
  delete headers['x-scf-private-environment'];
  // 修复域名错误
  if (!headers['x-forwarded-host'] && headers['eo-pages-host']) {
    headers['x-forwarded-host'] = headers['eo-pages-host'];
  }
});
